<template>
  <!--轮播图-->
  <el-carousel :interval = "4000" type = "card" height = "200px">
    <el-carousel-item v-for = "item in 6" :key = "item">
      <h3 text = "2xl" justify = "center">{{ item }}</h3>123
    </el-carousel-item>
  </el-carousel>
  <!--楼层部分-->
  <div class = "floor-nav">
    <span>推荐歌单<i-right theme = "two-tone" size = "17" :fill = "['#000' ,'#000']" /></span>
    <ul class = "floor-list-recommend">
      <router-link to = "/" class = "floor-item" v-for = "item in 10" :key = "item">
        <el-image :src = "logo" fit = "fill" />
        <span>123</span>
      </router-link>
    </ul>
  </div>
  <!--独家放送-->
  <div class = "floor-nav">
    <span>独家放送<i-right theme = "two-tone" size = "17" :fill = "['#000' ,'#000']" /></span>
    <ul class = "floor-list-WyONLY">
      <router-link to = "/" class = "floor-item" v-for = "item in 3" :key = "item">
        <el-image :src = "logo" fit = "fill" />
        <span>123</span>
      </router-link>
    </ul>
  </div>
  <!--最新音乐-->
  <div class = "floor-nav">
    <span>最新音乐<i-right theme = "two-tone" size = "17" :fill = "['#000' ,'#000']" /></span>
    <ul class = "floor-list-newMusic">
      <router-link to = "/" class = "floor-item" v-for = "item in 9" :key = "item">
        <el-image :src = "logo" fit = "fill" />
        <div class = "floor-content">
          <span>123</span>
          <span>123456789</span>
        </div>
      </router-link>
    </ul>
  </div>

</template>

<script setup>
import logo from '@/assets/logo.png'

</script>

<style lang = "less" scoped>
// el-tabs 样式
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}

.floor-nav {
  font-size: 17px;
  font-weight: bold;
  color: black;
  margin-bottom: 30px;


  .floor-list-recommend {
    display: flex;
    flex-flow: row wrap;
    margin-top: 20px;
    justify-content: space-between;

    .floor-item {
      display: flex;
      width: 20%;
      flex-direction: column;
      justify-content: center;
      padding-right: 10px;
      margin-bottom: 20px;

      &:nth-last-child(1) {
        padding-right: 0;

      }

    }


  }

  .floor-list-WyONLY {
    display: flex;
    margin-top: 20px;
    justify-content: space-between;


    .floor-item {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      margin-bottom: 20px;


      .el-image {
        height: 150px;
        margin-bottom: 20px;
      }
    }
  }

  .floor-list-newMusic {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: space-between;


    .floor-item {
      display: flex;
      flex: 0 0 30%;
      margin-bottom: 10px;

      .floor-content {
        padding-left: 10px;
        display: flex;
        flex-direction: column;
      }

      .el-image {
        width: 50px;
        height: 50px;
      }
    }
  }
}

</style>